package com.scm.persist.mybatis;

import com.scm.persist.model.ScmSupplier;
import com.scm.persist.model.ScmSupplierExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface ScmSupplierMapper {
    int countByExample(ScmSupplierExample example);

    int deleteByExample(ScmSupplierExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ScmSupplier record);

    int insertSelective(ScmSupplier record);

    List<ScmSupplier> selectByExampleWithRowbounds(ScmSupplierExample example, RowBounds rowBounds);

    List<ScmSupplier> selectByExample(ScmSupplierExample example);

    ScmSupplier selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ScmSupplier record, @Param("example") ScmSupplierExample example);

    int updateByExample(@Param("record") ScmSupplier record, @Param("example") ScmSupplierExample example);

    int updateByPrimaryKeySelective(ScmSupplier record);

    int updateByPrimaryKey(ScmSupplier record);
}